package com.wsleo.jblog.model.article;

import java.util.List;
import java.util.Map;

import com.wsleo.jblog.model.BaseModel;
import com.wsleo.jblog.model.common.Status;

/**
 * Article Catalog
 */
public class ArticleCatalog extends BaseModel {

    private static final long serialVersionUID = 1L;
    
    private Integer sortId;
    private String catalogName;
    private String aliasName;
    private Status status = Status.NORMAL;
    private List<Article> articles;

    public Integer getSortId() {
		return sortId;
	}

	public void setSortId(Integer sortId) {
		this.sortId = sortId;
	}

	public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

    public List<Article> getArticles() {
        return articles;
    }

    public void setArticles(List<Article> articles) {
        this.articles = articles;
    }
    
    @Override
    protected Map<String, Object> ListInsertableFields() {
        return super.ListInsertableFields();
    }

    @Override
    public String toString() {
        return "ArticleCatalog [orderId=" + sortId + ", catalogName="
                + catalogName + ", aliasName=" + aliasName + ", status="
                + status + ", createTime=" + getCreateTime()
                + ", lastUpdTime=" + getLastUpdTime() + ", lastUpdBy=" 
                + getLastUpdBy() + ", id=" + getId()
                + "]";
    }

}